package study;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.LinkOption;
import java.nio.file.Path;
import java.nio.file.Paths;

public class TestGetOwner {
    public static void main(String[] args) throws IOException {
        testOwner();
    }
    public static void testOwner() throws IOException {
        File file = new File("E:\\111");
        String[] files = file.list();
        assert files != null;
        for (String f : files){
            System.out.println(f);
        }
       // file.exists();
        InputStream inputStream=new FileInputStream("E:\\111");
        inputStream.read();
        file.mkdir();
        file.createNewFile();
    }
}